package com.liuzhilong.infrastructure.basic.strategy.simple;

public class Invoker {

    private Strategy strategy;

    public void logic(){
        System.out.println("执行自身逻辑");
        System.out.println("执行策略逻辑----"+strategy.strategy());
    }
    //变更策略
    public void changeStrategy(Strategy strategy){
        this.strategy=strategy;
    }



}
